package com.accountsmanager.dto;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;

/**
 * @author JackyFlame
 * @version 创建时间：2013-8-5 下午3:33:29 DataDictionary
 */
@Entity
public class DataDictionary {

	/** 字典表ID */
	private long id;
	/** 字典类型 */
	private String dictType;
	/** 字典类型名称 */
	private String dictTypeName;
	/** 字典代码 */
	private String dictCode;
	/** 字典名称 */
	private String dictCodeName;

	/**
	 * id
	 * [@TableGenerator:用于跨平台的ID生成，数据库表格存储]
	 * @return long id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "tb_gen")
	@TableGenerator(name = "tb_gen", table = "tb_gen", pkColumnName = "gen_pk", valueColumnName = "gen_value", pkColumnValue = "dataDict_pk", allocationSize = 1)
	public long getId() {
		return id;
	}

	/**
	 * id
	 * 
	 * @param long id
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * dictType
	 * 
	 * @return String dictType
	 */
	public String getDictType() {
		return dictType;
	}

	/**
	 * dictType
	 * 
	 * @param String
	 *            dictType
	 */
	public void setDictType(String dictType) {
		this.dictType = dictType;
	}
	
	/**
	 * dictTypeName
	 * 
	 * @return String dictTypeName
	 */
	public String getDictTypeName() {
		return dictTypeName;
	}
	
	/**
	 * dictTypeName
	 * 
	 * @param String
	 *            dictTypeName
	 */
	public void setDictTypeName(String dictTypeName) {
		this.dictTypeName = dictTypeName;
	}
	
	/**
	 * dictCode
	 * 
	 * @return String dictCode
	 */
	public String getDictCode() {
		return dictCode;
	}
	
	/**
	 * dictCode
	 * 
	 * @param String
	 *            dictCode
	 */
	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}
	
	/**
	 * dictCodeName
	 * 
	 * @return String dictCodeName
	 */
	public String getDictCodeName() {
		return dictCodeName;
	}

	/**
	 * dictCodeName
	 * 
	 * @param String
	 *            dictCodeName
	 */
	public void setDictCodeName(String dictCodeName) {
		this.dictCodeName = dictCodeName;
	}

}
